import { LayerGlobalConfigure } from "slash-layer/dist/packages/components/Layer/ts/LayerConfigureDefinition";

export const config = {
  title: "自定义全局标题",
  max: false,
  min: false,
  loadingTime: 500,
  header: true,
  successDecide(msg: any) {
    console.log(msg);
    if (msg.code == 200) {
      return {
        msg: msg.msg, result: true, data: msg.data
      };
    } else {
      return {
        msg: msg.msg, result: false, data: msg.data
      };
    }
  }
} as LayerGlobalConfigure;
export default config;
